package com.zz.controller;

import com.zz.service.AnotherService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AnotherController {

    private final AnotherService anotherService;

    public AnotherController(AnotherService anotherService) {
        this.anotherService = anotherService;
    }

    @GetMapping("/student/process/{id}")
    public String processStudent(@PathVariable String id) {
        anotherService.doSomethingWithStudent(id);
        return "Processing student with ID: " + id;
    }
}